package pers.zh.parking.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import pers.zh.parking.po.PkUser;
import pers.zh.parking.po.PkUserExample;

@Mapper
public interface PkUserMapper {
    int countByExample(PkUserExample example);

    int deleteByExample(PkUserExample example);

    int deleteByPrimaryKey(Integer userId);

    int insert(PkUser record);

    int insertSelective(PkUser record);

    List<PkUser> selectByExample(PkUserExample example);

    PkUser selectByPrimaryKey(Integer userId);

    int updateByExampleSelective(@Param("record") PkUser record, @Param("example") PkUserExample example);

    int updateByExample(@Param("record") PkUser record, @Param("example") PkUserExample example);

    int updateByPrimaryKeySelective(PkUser record);

    int updateByPrimaryKey(PkUser record);

    int getUserByAccount(@Param("account") String account);

    PkUser validate(@Param("account") String account, @Param("password") String password);

    int modifyPwd(PkUser user);
}